package TeacherEvaluation.com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import TeacherEvaluation.com.dao.scoreDao;
import TeacherEvaluation.com.entity.Score;
import TeacherEvaluation.com.entity.SelectScore;
import TeacherEvaluation.com.entity.stuScore;
import TeacherEvaluation.com.entity.te_score;

@Service
public class scoreService {
	@Autowired
	scoreDao scoreDao;
	
	
	public  List<SelectScore> selectStuScore(int stu_id) {
		return scoreDao.selectStuScore(stu_id);
	};
	
	public int insertStuScore(Score score) {
		return scoreDao.insertStuScore(score);
	};
	
	public List<stuScore> selectStuSc(){
		return scoreDao.selectStuSc();
	};
	public stuScore selectStuScOne(int as_id) {
		return scoreDao.selectStuScOne(as_id);
	};
	public int insertTerScore(te_score te_score) {
		return scoreDao.insertTerScore(te_score);
	};
	public List<te_score> selectByMySc(int te_id) {
		return scoreDao.selectByMySc(te_id);
	};
	public List<te_score> selectTeByMy(int te_id){
		return scoreDao.selectTeByMy(te_id);
	};
	public List<te_score> selectTe(){
		return scoreDao.selectTe();
	};
}
